import React, { FC, useEffect } from 'react'
import {Outlet } from 'react-router-dom'
import {inject,observer} from 'mobx-react'
const Home:FC<any>=({
uinfo
})=> {
  const {changeInfoAsync,userInfo}=uinfo
  useEffect(()=>{
    changeInfoAsync()

  },[])
  return (
    <div style={{width:"100%",height:"100%"}}>
        <Outlet></Outlet>
    </div>
  )
}

export default inject('uinfo') (observer(Home))